Account: xyz-peter.smith from 9310:
Create Account and User Subject From Given Subject Uuid and
Name| name | value |
|---|---|
| subjectName | xyz-peter.smith |
| name | value |
|---|---|
| expectedRelationsJson | [ { “type”: “REPRESENTATIVE”, “anchor”: { “tradeName”: “Peter Smith - The Second Hand and Thrift Stores-n-Shipping e.K.” }, “holder”: { “givenName”: “Peter”, “familyName”: “Smith” }, “contact”: { “emailAddresses”: { “main”: “contact-admin@secondcontact.example.com” } } }, { “type”: “PARTNER”, “anchor”: { “tradeName”: “Hostsharing eG” }, “holder”: { “givenName”: “Peter”, “familyName”: “Smith” }, “contact”: { “emailAddresses”: { “main”: “contact-admin@sixthcontact.example.com” } } }, { “type”: “DEBITOR”, “anchor”: { “givenName”: “Peter”, “familyName”: “Smith” }, “holder”: { “givenName”: “Peter”, “familyName”: “Smith” }, “contact”: { “emailAddresses”: { “main”: “contact-admin@thirdcontact.example.com” } } }, { “type”: “SUBSCRIBER”, “mark”: “members-announce”, “anchor”: { “tradeName”: “Third OHG” }, “holder”: { “givenName”: “Peter”, “familyName”: “Smith” }, “contact”: { “emailAddresses”: { “main”: “contact-admin@thirdcontact.example.com” } } } ] |
HTTP GET "/api/hs/accounts/accounts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-peter.smith>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "242a0002-0000-0000-0000-000000000002", // Account: xyz-peter.smith
"person" : {
"uuid" : "32588021-af6f-47e4-978e-d8b50927e820", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"subject" : {
"uuid" : "242a0002-0000-0000-0000-000000000002", // Account: xyz-peter.smith
"name" : "xyz-peter.smith",
"organization" : "xyz",
"type" : "USER"
},
"globalUid" : 21011,
"globalGid" : 21011
} ]
Fetch the account for the current subject to resolve the related person.
HTTP GET "/api/hs/office/relations?personUuid=32588021-af6f-47e4-978e-d8b50927e820" // personUuid \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-peter.smith>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "2ffd3ab5-1a75-4dea-b5a6-6ec3dca30056",
"anchor" : {
"uuid" : "eabf7140-e674-4dd2-be51-e97fdb317d59",
"personType" : "LEGAL_PERSON",
"tradeName" : "Peter Smith - The Second Hand and Thrift Stores-n-Shipping e.K.",
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"holder" : {
"uuid" : "32588021-af6f-47e4-978e-d8b50927e820", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"type" : "REPRESENTATIVE",
"mark" : null,
"contact" : {
"uuid" : "784a23db-869f-44e5-ab5c-960fa62a28fa",
"caption" : "second contact",
"postalAddress" : {
"country" : "Germany"
},
"emailAddresses" : {
"main" : "contact-admin@secondcontact.example.com"
},
"phoneNumbers" : {
"phone_office" : "+49 123 1234567"
}
}
}, {
"uuid" : "fe4de819-5d18-4a30-9df8-d809bc7b475b",
"anchor" : {
"uuid" : "32588021-af6f-47e4-978e-d8b50927e820", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"holder" : {
"uuid" : "32588021-af6f-47e4-978e-d8b50927e820", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"type" : "DEBITOR",
"mark" : null,
"contact" : {
"uuid" : "97880992-9431-4f56-86e3-eac309b2a927",
"caption" : "third contact",
"postalAddress" : {
"country" : "Germany"
},
"emailAddresses" : {
"main" : "contact-admin@thirdcontact.example.com"
},
"phoneNumbers" : {
"phone_office" : "+49 123 1234567"
}
}
}, {
"uuid" : "350fe9f7-9e6c-4942-b52c-664e49d1700c",
"anchor" : {
"uuid" : "05e4aded-5bcf-447d-ae94-1f3ad2ef077f",
"personType" : "INCORPORATED_FIRM",
"tradeName" : "Third OHG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "32588021-af6f-47e4-978e-d8b50927e820", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"type" : "SUBSCRIBER",
"mark" : "members-announce",
"contact" : {
"uuid" : "97880992-9431-4f56-86e3-eac309b2a927",
"caption" : "third contact",
"postalAddress" : {
"country" : "Germany"
},
"emailAddresses" : {
"main" : "contact-admin@thirdcontact.example.com"
},
"phoneNumbers" : {
"phone_office" : "+49 123 1234567"
}
}
}, {
"uuid" : "d0944043-240e-4988-a777-f6ad4d1c4951",
"anchor" : {
"uuid" : "882bda1d-4e5e-42f8-afdd-b9741d1c1f4e",
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "32588021-af6f-47e4-978e-d8b50927e820", // personUuid
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : null,
"title" : null,
"givenName" : "Peter",
"familyName" : "Smith"
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "1e08c632-bb43-492d-a6f2-00213fa5e16d",
"caption" : "sixth contact",
"postalAddress" : {
"country" : "Germany"
},
"emailAddresses" : {
"main" : "contact-admin@sixthcontact.example.com"
},
"phoneNumbers" : {
"phone_office" : "+49 123 1234567"
}
}
} ]
generated on 2026-08-10 04:34:15 for branch HEAD